Adapted/fixed for OpenCV 2.4.6 and Qt 4.8.6 on GNU/Linux
/trunk/Chapter 01/main1.cpp |
---|
21,7 → 21,7 |
int main() { |
// read an image |
cv::Mat image= cv::imread("img.jpg"); |
cv::Mat image= cv::imread("baboon1.jpg"); |
// create image window named "My Image" |
cv::namedWindow("My Image"); |
// show the image on window |